﻿using System;
using System.Xml.Serialization;

namespace WSOAMOBIMIDWARE
{
    [XmlRootAttribute("root")]
    public class HTTPOA_HttpPost_Response
    {
        [XmlElementAttribute("xt")]
        public string xt { get; set; }
        [XmlElementAttribute("status")]
        public string status { get; set; }
        [XmlElementAttribute("prompt")]
        public HTTPOA_PagePrompt prompt { get; set; }
        [XmlArrayAttribute("form")]
        [XmlArrayItemAttribute("field")]
        public HTTPOA_PageField[] pageFields { get; set; }
        [XmlElementAttribute("action")]
        public HTTPOA_Action[] actions { get; set; }
        [XmlElementAttribute("next")]
        public object _action
        {
            get
            {
                return nextAction;
            }
            set
            {
                string temp_actionId;
                HTTPOA_Action temp_action;
                HTTPOA_Action.CastXmlToType(value, out temp_action, out temp_actionId);
                nextActionId = temp_actionId;
                nextAction = temp_action;
            }
        }
        [XmlIgnoreAttribute]
        public string nextActionId { get; set; }
        [XmlIgnoreAttribute]
        public HTTPOA_Action nextAction { get; set; }
    }
}
